<!DOCTYPE html>
<html>
  <head>
    <meta charset="utf-8">
    <title>type Convert</title>
  </head>
  <body>
    <script type="text/javascript">
    /*var arg1 = Number("123");
    var arg2 = String(123);
    var arg3 = Boolean(111);
    console.log("arg1:"+typeof(arg1));
    console.log("arg2:"+typeof(arg2));
    console.log("arg3:s"+typeof(arg3));

      var x = 123;
      console.log(typeof(x.toString()));
      console.log(typeof((123).toString()));
      console.log(typeof((1+7).toString()));*/
    </script>

    <script>/*
function myFunction() {
    var y = "5";   //字符
    var x = + y;   //数值
    console.log("y:"+typeof y)
    console.log("x:"+typeof x);
}
*/
function myFun() {
    var y = "Weiyi";   //字符
    var x = + y;   //数值
    console.log("y:"+typeof y)
    console.log("x:"+x);
}
myFun();
</script>
  </body>
</html>
